home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!news
- From: kent.persson@mailbox.swipnet.se (Kent Persson)
- Newsgroups: comp.lang.c++
- Subject: Watcom C++ 10.5.. Need help with asm-registers..
- Date: 12 Mar 1996 17:46:37 GMT
- Organization: Your Organization
- Message-ID: <4i4d9t$lo4@mn5.swip.net>
- NNTP-Posting-Host: dialup99-5-6.swipnet.se
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- NNTP-Posting-User: e990a2281e6449bb84049cfa234dd6bd
- X-Newsreader: WinVN 0.99.7
-
- I've just started to learn C++ and I have a bit problem.
- Anyone who can explain how to do this little code correct?
-
- /* How to do in Watcom C++ 10.5? */
-
- union REGS fast_regs;
- char *Temp;
-
- Temp = ((char *)malloc(10000));
- fast_regs.x.esi = Temp; /* The problem is here */
- /* How do I pass a pointer */
- /* to a register? */
-
- Thanks in advance!
-
- /Kent (kent.persson@mailbox.swipnet.se)
-
-